package com.healthy.reminders.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.reminders.mapper.HealthRemindersMapper;
import com.healthy.reminders.domain.HealthReminders;
import com.healthy.reminders.service.IHealthRemindersService;

/**
 * 定时提醒Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class HealthRemindersServiceImpl implements IHealthRemindersService 
{
    @Autowired
    private HealthRemindersMapper healthRemindersMapper;

    /**
     * 查询定时提醒
     * 
     * @param id 定时提醒主键
     * @return 定时提醒
     */
    @Override
    public HealthReminders selectHealthRemindersById(Long id)
    {
        return healthRemindersMapper.selectHealthRemindersById(id);
    }

    /**
     * 查询定时提醒列表
     * 
     * @param healthReminders 定时提醒
     * @return 定时提醒
     */
    @Override
    public List<HealthReminders> selectHealthRemindersList(HealthReminders healthReminders)
    {
        return healthRemindersMapper.selectHealthRemindersList(healthReminders);
    }

    /**
     * 新增定时提醒
     * 
     * @param healthReminders 定时提醒
     * @return 结果
     */
    @Override
    public int insertHealthReminders(HealthReminders healthReminders)
    {
        return healthRemindersMapper.insertHealthReminders(healthReminders);
    }

    /**
     * 修改定时提醒
     * 
     * @param healthReminders 定时提醒
     * @return 结果
     */
    @Override
    public int updateHealthReminders(HealthReminders healthReminders)
    {
        return healthRemindersMapper.updateHealthReminders(healthReminders);
    }

    /**
     * 批量删除定时提醒
     * 
     * @param ids 需要删除的定时提醒主键
     * @return 结果
     */
    @Override
    public int deleteHealthRemindersByIds(Long[] ids)
    {
        return healthRemindersMapper.deleteHealthRemindersByIds(ids);
    }

    /**
     * 删除定时提醒信息
     * 
     * @param id 定时提醒主键
     * @return 结果
     */
    @Override
    public int deleteHealthRemindersById(Long id)
    {
        return healthRemindersMapper.deleteHealthRemindersById(id);
    }
}
